package com.health.db.service.user.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.health.db.dao.user.ITrainingBaseDao;
import com.health.db.model.TrainingBase;
import com.health.db.model.TrainingBaseExample;
import com.health.db.service.user.ITrainingBaseService;


@Component("trainningBaseService")
public class TrainningBaseService implements ITrainingBaseService {
	
	@Autowired
	private ITrainingBaseDao trainingBaseDao;
	

	public ITrainingBaseDao getTrainingBaseDao() {
		return trainingBaseDao;
	}

	public void setTrainingBaseDao(ITrainingBaseDao trainingBaseDao) {
		this.trainingBaseDao = trainingBaseDao;
	}

	@Override
	public int insert(TrainingBase record) {
		// TODO Auto-generated method stub
		return trainingBaseDao.insert(record);
	}

	@Override
	public List<TrainingBase> selectByExample(TrainingBaseExample example) {
		// TODO Auto-generated method stub
		return trainingBaseDao.selectByExample(example);
	}

	@Override
	public TrainingBase selectByPrimaryKey(Long id) {
		// TODO Auto-generated method stub
		return trainingBaseDao.selectByPrimaryKey(id);
	}

	@Override
	public int updateByPrimaryKeySelective(TrainingBase record) {
		// TODO Auto-generated method stub
		return trainingBaseDao.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(TrainingBase record) {
		// TODO Auto-generated method stub
		return trainingBaseDao.updateByPrimaryKey(record);
	}

	
	
	
	
}
